Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Go over operator characters... #71

Merged
merged 2 commits into from
Sep 10, 2024
Merged

Go over operator characters... #71

merged 2 commits into from
Sep 10, 2024

Conversation

rocky
Copy link
Member

@rocky rocky commented Sep 3, 2024

and add more information in operators YAML

@rocky rocky marked this pull request as draft September 3, 2024 00:54
@@ -5003,13 +4992,15 @@ Information:
is-letter-like: false
operator-name: Information

# While one might think that Integral is an WL operator, it is not.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Precedence of Integration Operators

Forms such as involve two operators: [[Integral]](https://reference.wolfram.com/language/ref/ character/Integral.html)
and [[DifferentialD]](https://reference.wolfram.com/language/ref/character/DifferentialD.html).
The former has a precedence just above , while the latter has one > just below Power.
The precedence of determines when needs to be parenthesized, while the precedence of determines when needs to be parenthesized. Note that the form does not involve , and therefore behaves like a normal prefix operator in this case.
, [∲](https://> reference.wolfram.com/language/ref/character/ClockwiseContourIntegral.html) and
work the same as .
See "Two-Dimensional Input Forms" for two‐dimensional input forms associated with integration operators.

(from https://reference.wolfram.com/language/tutorial/OperatorInputForms.html)

Copy link
Member Author

@rocky rocky Sep 7, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok. Thanks for the information and corrections.

I will revise this and the spelling corrections below soon. The thing about Integral then is that its "arity" is special- neither Prefix, Postfix, Infix, or MatchFix. I'll create a new category "Compound" (following WL docs) then.

and add more information in operators YAML
@@ -180,7 +182,7 @@ def test_unicode_operators():
operator_name = v["operator-name"]
assert (
k == operator_name
), f"Section name {k} should match operator-name {operator_name} when a section has an operator"
), f"Section name {k} should match operator-name {operator_name} or be exlicitly excluded when a section has an operator"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

explicitly?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes - thanks.

# Precedence-corrected: the value used in Mathics3.
# WolframLangageData: a value returned using WolframLangageData[???]

# WolframLangageData: a "PrecedenceRanks" value returned using:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WolframLanguageData

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be fixed now.

# Precedence-corrected: the value used in Mathics3.
# WolframLangageData: a value returned using WolframLangageData[???]

# WolframLangageData: a "PrecedenceRanks" value returned using:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WolframLanguageData

their arity, and operatorness.

Also fix spelling mistakes caught by mmatera
@rocky rocky marked this pull request as ready for review September 7, 2024 23:48
@rocky rocky merged commit 23c1367 into master Sep 10, 2024
12 checks passed
@rocky rocky deleted the more-operator-tweaks branch September 10, 2024 01:23
rocky added a commit that referenced this pull request Sep 13, 2024
* Go over operator characters...

and add more information in operators YAML

* Go over Integrals...

their arity, and operatorness.

Also fix spelling mistakes caught by mmatera
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants